<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/emp/update" method="post">
    <table>
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>工资</td>
            <td>电话</td>
            <td>部门</td>
        </tr>
        <tr th:object="${emp}">
            <td>
                <input type="text" name="id" th:value="*{id}">
            </td><br>
            <td>
                <input type="text" name="name" th:value="*{name}">
            </td><br>
            <td>
                <input type="text" name="age" th:value="*{age}">
            </td><br>
            <td>
                <input type="text" name="salary" th:value="*{salary}">
            </td><br>
            <td>
                <input type="text" name="phone" th:value="*{phone}">
            </td><br>
            <td>
                <input type="text" name="did" th:value="*{did}">
            </td><br>
            <td>
                <input type="submit" value="修改">
            </td>
        </tr>
    </table>
</form>
</body>
</html>